package org.davidliebman.android.awesomecube;


import android.util.Log;
import android.content.*;

public class SimpleMirror extends Mesh {
	
//	int mFace1;
	int mXpos, mYpos;
	float mHalf;
	
	public SimpleMirror(Context c) {
		super(c);
		mContext = c;
		this.settupArrays();

		this.preBuildMesh();
	} 
	
	public SimpleMirror(Context c, int face1) {
		super(c);
		mContext = c;
		mFace1 = face1;
		this.settupArrays();

		this.preBuildMesh();
		
	}
	
	public SimpleMirror(Context c, Positioning mP, int xpos, int ypos, float mHalf, int face1, int face2, int face3) {
		super(c);
		mContext = c;
		mFace1 = face1;
		mFace2 = face2;
		mFace3 = face3;
		mXpos = xpos;
		mYpos = ypos;
		mP1 = mP;// mP1
		this.mHalf = mHalf;
		this.settupArrays();

		this.preBuildMesh();
		//this.addToMP0(mP);

	}
	

	
	@Override
	public void settupArrays() {
	
		if ( ! this.mShouldLoadArrays) return;
		
		
		this.mShouldLoadTexture = true;
		
	
		
		
		this.addMeshPart(null);
		this.addMeshPart(null);
		this.addMeshPart(new MeshPartPlaneZ(mFace3, false, mHalf, mXpos , mYpos, -3.0f)); // 

		
		this.mShouldLoadArrays = false;
	}
	
	
	
	
}
